package com.lyc.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.lyc.util.DBUtil;

import java.io.Serializable;

/**
 * @Program: medal
 * 管理员
 * @Author: YC
 * @Date: 2022/5/5 15:20
 */
public class AdminInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /*管理员编号*/
    @DBUtil.Id
    private Integer adminId;

    /*管理员姓名*/
    private String adminName;

    /*管理员密码*/
    private String adminPwd;

    /*管理员创建时间*/
    @JSONField(format = "yyyy-MM-dd")
    private java.util.Date adminCreateTime;

    /*无参构造*/
    public AdminInfo() {
    }

    /*全参构造*/
    public AdminInfo(Integer adminId, String adminName, String adminPwd, java.util.Date adminCreateTime) {
        this.adminId = adminId;
        this.adminName = adminName;
        this.adminPwd = adminPwd;
        this.adminCreateTime = adminCreateTime;
    }

    public AdminInfo(Integer adminId) {
        this.adminId = adminId;
    }

    public Integer getAdminId() {
        return adminId;
    }

    public void setAdminId(Integer adminId) {
        this.adminId = adminId;
    }

    public String getAdminName() {
        return adminName;
    }

    public void setAdminName(String adminName) {
        this.adminName = adminName;
    }

    public String getAdminPwd() {
        return adminPwd;
    }

    public void setAdminPwd(String adminPwd) {
        this.adminPwd = adminPwd;
    }

    public java.util.Date getAdminCreateTime() {
        return adminCreateTime;
    }

    public void setAdminCreateTime(java.util.Date adminCreateTime) {
        this.adminCreateTime = adminCreateTime;
    }

    @Override
    public String toString() {
        return "AdminInfo{" +
                "adminId=" + adminId +
                ", adminName='" + adminName + '\'' +
                ", adminPwd='" + adminPwd + '\'' +
                ", adminCreateTime=" + adminCreateTime +
                '}';
    }
}
